//
//package com.rt.schedulebase.service.impl;
//import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
//import com.baomidou.mybatisplus.core.conditions.Wrapper;
//import java.util.Map;
//import java.util.HashMap;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import java.util.List;
//import com.rt.schedulebase.dto.DictScheduleApmRegularDto;
//import java.io.Serializable;
//import org.springframework.stereotype.Service;
//import com.rt.schedulebase.service.IDictScheduleApmRegularService;
//import com.rt.schedulebase.entity.DictScheduleApmRegular;
//import com.rt.schedulebase.mapper.DictScheduleApmRegularMapper;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//@Service("DictScheduleApmRegularServiceImpl_v2")
//public class DictScheduleApmRegularServiceImpl extends ServiceImpl<DictScheduleApmRegularMapper, DictScheduleApmRegular> implements IDictScheduleApmRegularService
//{
//@Override
//    public boolean insertSelective(final DictScheduleApmRegular dictScheduleApmRegular) {
//        return this.retBool(Integer.valueOf(((DictScheduleApmRegularMapper)this.baseMapper).insert(dictScheduleApmRegular)));
//    }
//
//@Override
//    public boolean deleteByPrimaryKey(final String key) {
//        return this.retBool(Integer.valueOf(((DictScheduleApmRegularMapper)this.baseMapper).deleteById((Serializable)key)));
//    }
//
//@Override
//    public boolean updateByPrimaryKeySelective(final DictScheduleApmRegular dictScheduleApmRegular) {
//        return this.retBool(Integer.valueOf(((DictScheduleApmRegularMapper)this.baseMapper).updateById(dictScheduleApmRegular)));
//    }
//
//@Override
//    public DictScheduleApmRegular selectByPrimaryKey(final String key) {
//        return (DictScheduleApmRegular)((DictScheduleApmRegularMapper)this.baseMapper).selectById((Serializable)key);
//    }
//
//@Override
//    public List<DictScheduleApmRegular> getList(final DictScheduleApmRegularDto dto) {
//        final QueryWrapper<DictScheduleApmRegular> qw = (QueryWrapper<DictScheduleApmRegular>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APM_CODE", dto.getApmCode());
//        map.put("REGULAR_ID", dto.getRegularId());
//        map.put("MAX_LIMIT", dto.getMaxLimit());
//        map.put("MIN_LIMIT", dto.getMinLimit());
//        qw.allEq((Map)map, false);
//        final List<DictScheduleApmRegular> list = (List<DictScheduleApmRegular>)((DictScheduleApmRegularMapper)this.baseMapper).selectList((Wrapper)qw);
//        return list;
//    }
//
//@Override
//    public List<DictScheduleApmRegular> getListAll() {
//        return (List<DictScheduleApmRegular>)((DictScheduleApmRegularMapper)this.baseMapper).selectList((Wrapper)null);
//    }
//
//@Override
//    public boolean delete(final DictScheduleApmRegular dictScheduleApmRegular) {
//        final UpdateWrapper<DictScheduleApmRegular> uw = (UpdateWrapper<DictScheduleApmRegular>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APM_CODE", dictScheduleApmRegular.getApmCode());
//        map.put("REGULAR_ID", dictScheduleApmRegular.getRegularId());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((DictScheduleApmRegularMapper)this.baseMapper).delete((Wrapper)uw)));
//    }
//
//@Override
//    public boolean update(final DictScheduleApmRegular dictScheduleApmRegular) {
//        final UpdateWrapper<DictScheduleApmRegular> uw = (UpdateWrapper<DictScheduleApmRegular>)new UpdateWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APM_CODE", dictScheduleApmRegular.getApmCode());
//        map.put("REGULAR_ID", dictScheduleApmRegular.getRegularId());
//        uw.allEq((Map)map, false);
//        return this.retBool(Integer.valueOf(((DictScheduleApmRegularMapper)this.baseMapper).update(dictScheduleApmRegular, (Wrapper)uw)));
//    }
//
//@Override
//    public DictScheduleApmRegular getInfo(final DictScheduleApmRegularDto dto) {
//        final QueryWrapper<DictScheduleApmRegular> qw = (QueryWrapper<DictScheduleApmRegular>)new QueryWrapper();
//        final Map<String, Object> map = new HashMap<String, Object>();
//        map.put("APM_CODE", dto.getApmCode());
//        map.put("REGULAR_ID", dto.getRegularId());
//        qw.allEq((Map)map, false);
//        return (DictScheduleApmRegular)((DictScheduleApmRegularMapper)this.baseMapper).selectOne((Wrapper)qw);
//    }
//}
